package cn.edu.nju.software.cdiy.bean;

import java.io.Serializable;

public class HardwareSet implements Serializable {

	private static final long serialVersionUID = 4322344697227343782L;
	// 选中或删除硬件时set相应硬件的值
	// 主要用于评估 以及作为匹配的参考条件
	private MainBoard mainBoard;
	private CPU cpu;
	private Memory memory;
	private int memoryNum;
	private Disk disk;
	private int diskNum;
	private Graphics graphics;
	private Chassis chassis;
	private Power power;
	private Radiator radiator;
	private Driver driver;
	private Monitor monitor;
	private SoundBox soundBox;
	private SoundCard soundCard;
	private NetworkAdapter networkAdapter;

	public MainBoard getMainBoard() {
		return mainBoard;
	}

	public void setMainBoard(MainBoard mainBoard) {
		this.mainBoard = mainBoard;
	}

	public void setMainBoard(int id) {
		mainBoard = new MainBoard();
		mainBoard.setId(id);
	}

	public CPU getCpu() {
		return cpu;
	}

	public void setCpu(CPU cpu) {
		this.cpu = cpu;
	}

	public void setCpu(int id) {
		cpu = new CPU();
		cpu.setId(id);
	}

	public Memory getMemory() {
		return memory;
	}

	public void setMemory(Memory memory) {
		this.memory = memory;
	}

	public void setMemory(int id) {
		memory = new Memory();
		memory.setId(id);
	}

	public int getMemoryNum() {
		return memoryNum;
	}

	public void setMemoryNum(int memoryNum) {
		this.memoryNum = memoryNum;
	}

	public Disk getDisk() {
		return disk;
	}

	public void setDisk(Disk disk) {
		this.disk = disk;
	}

	public void setDisk(int id) {
		disk = new Disk();
		disk.setId(id);
	}

	public int getDiskNum() {
		return diskNum;
	}

	public void setDiskNum(int diskNum) {
		this.diskNum = diskNum;
	}

	public Graphics getGraphics() {
		return graphics;
	}

	public void setGraphics(Graphics graphics) {
		this.graphics = graphics;
	}

	public void setGraphics(int id) {
		graphics = new Graphics();
		graphics.setId(id);
	}

	public Chassis getChassis() {
		return chassis;
	}

	public void setChassis(Chassis chassis) {
		this.chassis = chassis;
	}

	public void setChassis(int id) {
		chassis = new Chassis();
		chassis.setId(id);
	}

	public Power getPower() {
		return power;
	}

	public void setPower(Power power) {
		this.power = power;
	}

	public void setPower(int id) {
		power = new Power();
		power.setId(id);
	}

	public Radiator getRadiator() {
		return radiator;
	}

	public void setRadiator(Radiator radiator) {
		this.radiator = radiator;
	}

	public void setRadiator(int id) {
		radiator = new Radiator();
		radiator.setId(id);
	}

	public Driver getDriver() {
		return driver;
	}

	public void setDriver(Driver driver) {
		this.driver = driver;
	}

	public void setDriver(int id) {
		driver = new Driver();
		driver.setId(id);
	}

	public Monitor getMonitor() {
		return monitor;
	}

	public void setMonitor(Monitor monitor) {
		this.monitor = monitor;
	}

	public void setMonitor(int id) {
		monitor = new Monitor();
		monitor.setId(id);
	}

	public SoundBox getSoundBox() {
		return soundBox;
	}

	public void setSoundBox(SoundBox soundBox) {
		this.soundBox = soundBox;
	}

	public void setSoundBox(int id) {
		soundBox = new SoundBox();
		soundBox.setId(id);
	}

	public SoundCard getSoundCard() {
		return soundCard;
	}

	public void setSoundCard(SoundCard soundCard) {
		this.soundCard = soundCard;
	}

	public void setSoundCard(int id) {
		soundCard = new SoundCard();
		soundCard.setId(id);
	}

	public NetworkAdapter getNetworkAdapter() {
		return networkAdapter;
	}

	public void setNetworkAdapter(NetworkAdapter networkAdapter) {
		this.networkAdapter = networkAdapter;
	}

	public void setNetworkAdapter(int id) {
		networkAdapter = new NetworkAdapter();
		networkAdapter.setId(id);
	}

}
